import { Entity, Column } from "typeorm";

@Entity("rec_receivement_account")
export class ReceivementAccount {

    @Column({ primary: true, name: "id", type: "char", length: 36 })
    Id: string;

    @Column({ name: "name", type: "varchar", length: 50, nullable: true })
    Name: string;

    @Column({ name: "name", type: "varchar", length: 200, nullable: true })
    Remark: string;
}


@Entity("rec_member_account")
export class Account {

    @Column({ primary: true, name: "id", type: "char", length: 36 })
    Id: string;

    @Column({ name: "balance", type: "decimal", length: 10, precision: 4 })
    Balance: number;
}

@Entity("rec_receivement")
export class Receivement {

    @Column({ primary: true, name: "id", type: "char", length: 36 })
    Id: string;

    @Column({ name: "amount", type: "decimal", length: 10, precision: 4 })
    Amount: number;

    @Column({ name: "account_id", type: "char", length: 36 })
    AccountId: string
}

